﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;

namespace WpfUsercontrol.Models.TimeLines
{
    public class TimeLineItem: INotifyPropertyChanged
    {
        // 原有属性...
        public string Type { get; set; }
        public string Time { get; set; }
        public string Content { get; set; }

        // 新增属性
        private bool _isLastItem;
        public bool IsLastItem
        {
            get => _isLastItem;
            set
            {
                _isLastItem = value;
                OnPropertyChanged(nameof(IsLastItem));
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void OnPropertyChanged(string propertyName)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }
    }
}
